package com.itheima.Object;

public class Student {
    public String name;
    public double chineseScore;
    public double mathScore;

    public void printSumScore(){
        System.out.println(name + "的总成绩是" + (chineseScore  + mathScore));
    }

    // 平均分
    public void printAvgScore(){
        System.out.println(name + "的平均成绩是" + (chineseScore  + mathScore) / 2);
    }
}
